<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<c:import url="../common/meda.jsp"></c:import>
<title>网报关网信息解析-${sysDesc}</title>

<link rel="stylesheet" type="text/css"
	href="http://${static_server }/css/semantic.min.css">
<link rel="stylesheet" type="text/css"
	href="http://${static_server }/css/common.css">

<script src="http://${static_server }/js/jquery.min.js"></script>
<script src="http://${static_server }/js/semantic.min.js"></script>
<script src="http://${static_server }/js/common.js"></script>
<script src="//${static_server }/js/title_menu.js"></script>
<script>
	$(document).ready(function() {
		$('button.ui.icon.button').on("click", function(){
			var tr = $(this).parent().parent().next();
			if (tr.is(":hidden")) {
				tr.show("fast");
				$(this).children().removeClass("plus").addClass("minus");
			} else {
				tr.hide("fast");
				$(this).children().removeClass("minus").addClass("plus");
			}
			
		});
	});
</script>

</head>

<body class="pushable">
	<c:import url="../common/title_menu.jsp"></c:import>
	<div class="pusher">
		<div id="schoolheadsegment"
			class="ui vertical raised masthead segment">
			<div class="ui container">
				<div class="ui breadcrumb">
					<a class="section" href="http://${static_server }/"><i
						class="icon home"></i>首页</a>
					<div class="divider">/</div>
					<div class="active section">网报关网统计信息解析</div>
				</div>
			</div>
			<!-- content container end -->
		</div>

		<div id="mainsegment" class="ui vertical masthead segment">
			<div class="ui centered page grid">
			<div class="ui column">
				<div class="ui negative message">
				  <div class="header">
				    ${sessionScope.time_desc}
				  </div>
				</div>
				<table class="ui celled striped table">
					<thead>
						<tr>
							<th>操作</th>
							<th>专业代码</th>
							<th>专业名称</th>
							<th>计划数</th>
							<th>录取数</th>
							<th>预计1:1录取最低分(投档分)</th>
							<th>按院校投档比例投档线上已报人数</th>
							<th>学费</th>
							<th>办学地点</th>
							<th>专业备注</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${sessionScope.school.majors}" var="item">
							<tr>
								<td><button class="ui icon button"><i class="plus icon"></i></button></td>
								<td>${item.major_id }</td>
								<td>${item.major_name }</td>
								<td>${item.plan_num }</td>
								<td>${fn:length(item.students) }</td>
								<td>${item.yuji1bi1luquzuidifen }</td>
								<td>${item.apply_num }</td>
								<td>${item.xuefei }</td>
								<td>${item.location }</td>
								<td>${item.remark }</td>
							</tr>
							<tr style="display:none;">
								<td></td>
								<td colspan="9">
									<table class="ui celled striped table">
										<thead>
											<tr>
												<th>投档分</th>
												<th>实考分</th>
												<th>民族</th>
												<th>性别</th>
												<th>专业</th>
												<th>是否服从调剂</th>
											</tr>
										</thead>
										<tbody>
											<c:forEach items="${item.students}" var="student">
												<tr>
													<td>${student.apply_score }</td>
													<td>${student.test_score }</td>
													<td>${student.nation }</td>
													<td>${student.gendar }</td>
													<td>${student.apply_major_name }</td>
													<td>${student.obey?'是':'否' }</td>
												</tr>
											</c:forEach>
										</tbody>
									</table>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
			<!-- container end -->
		</div>
		<!-- segment end -->
		<c:import url="../common/footer.jsp"></c:import>
	</div>
	<!-- pusher end -->
</body>
</html>
